
public class Force {
	private double newton;	
	private Point3D dof;		//Direction of Force
	
	//
	//Method
	//
	
	public static Force addForce(Force f1, Force f2){
		Force resultForce = new Force();
		Point3D dof = new Point3D();

		dof.setX((f1.getDof().getX() + f2.getDof().getX()) / 2);
		dof.setY((f1.getDof().getY() + f2.getDof().getY()) / 2);
		dof.setZ((f1.getDof().getZ() + f2.getDof().getZ()) / 2);
		
		return resultForce;

	}
	//
	//Constructor
	//
	Force(){
		newton = 0;
		dof = new Point3D();
	}
	
	Force(double newton, Point3D dof){
		this.newton = newton;
		this.dof = dof;
	}
	
	//
	//getters and setters
	//
	public double getNewton() {
		return newton;
	}
	public void setNewton(double newton) {
		this.newton = newton;
	}
	public Point3D getDof() {
		return dof;
	}
	public void setDof(Point3D dof) {
		this.dof = dof;
	}
}
